const express = require('express')

const app = express()

app.post('/api/info', (req, res) => {
  console.log(req);
  res.header("Access-Control-Allow-Origin", "*")
  res.send({name: 'xiaoming'})
  res.end()
})

app.listen(9528)

console.log('server is runing at localhost:9528');